//
//  UIColor+NXAdd.m
//  OAManager
//
//  Created by kepuna on 2017/11/14.
//  Copyright © 2017年 kepuna. All rights reserved.
//

#import "UIColor+NXAdd.h"

#define RGBA(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define RGB(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]

@implementation UIColor (NXAdd)

+ (instancetype)c0 {
    return RGB(0,0,0);
}

+ (instancetype)c33 {
    return RGB(33,33,33);
}

+ (instancetype)c34 {
    return RGB(34,34,34);
}

+ (instancetype)c51 {
    return RGB(51, 51, 51);
}

+ (instancetype)c73 {
    return RGB(73, 73, 73);
}

+ (instancetype)c85 {
    return RGB(85, 85, 85);
}

+ (instancetype)c102 {
    return RGB(102,102,102);
}

+ (instancetype)c128 {
    return RGB(128, 128, 128);
}

+ (instancetype)c135 {
    return RGB(135, 135, 135);
}

+ (instancetype)c153 {
    return RGB(153, 153, 153);
}

+ (instancetype)c178 {
    return RGB(178, 178, 178);
}

+ (instancetype)c204 {
    return RGB(204, 204, 204);
}

+ (instancetype)c223 {
    return RGB(223, 223, 223);
}

+ (instancetype)c229 {
    return RGB(229, 229, 229);
}

+ (instancetype)c248 {
    return RGB(248,248,248);
}

+ (instancetype)c255 {
    return RGB(255, 255, 255);
}

+ (instancetype)c41_128_248 {
    return RGB(41, 128, 248);
}

+ (instancetype)c40_153_251 {
    return RGB(40, 153, 251);
}

+ (instancetype)c128_186_245 {
    return RGB(128, 186, 245);
}

+ (instancetype)c180_219_252 {
    return RGB(180, 219, 252);
}

+ (instancetype)c200_199_204 {
    return RGB(200, 199, 204);
}

+ (instancetype)c0_150_255 {
    return RGB(0, 150, 255);
}

+ (instancetype)c50_150_250 {
    return RGB(50, 150, 250);
}

+ (instancetype)c74_144_226 {
    return RGB(74, 144, 226);
}

+ (instancetype)c248_248_1 {
    return RGB(248, 248, 1);
}

+ (instancetype)cRandom {
    return [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4random_uniform(255)/255.0 blue:arc4random_uniform(255)/255.0 alpha:1];
}

+ (instancetype)cR:(CGFloat)r G:(CGFloat)g B:(CGFloat)b A:(CGFloat)a {
    return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a];
}

@end
